    <div class="cont-ft">
        <div class="copyright">
            <div class="fl">感谢使用<a href="../../www.onethink.cn/default.htm" target="_blank">Admin</a>管理平台</div>
            <div class="fr">V1.0.131129</div>
        </div>
    </div>
    <script type="text/javascript">
        (function(){
            var ThinkPHP = window.Think = {
                "ROOT"   : "../onethink", //当前网站地址
                "APP"    : "index.php@s=", //当前项目地址
                "PUBLIC" : "Public", //项目公共目录地址
                "DEEP"   : "../default.htm", //PATHINFO分割符
                "MODEL"  : ["3", "1", "html"],
                "VAR"    : ["m", "c", "a"]
            }
        })();
    </script>
    <script type="text/javascript" src="__ADMIN__/js/think.js"></script>
    <script type="text/javascript" src="__ADMIN__/js/common.js"></script>
    <script type="text/javascript">
    	+function(){
        	var $window = $(window), $subnav = $("#subnav"), url;
            $window.resize(function(){
                $("#main").css("min-height", $window.height() - 130);
            }).resize();

            /* 左边菜单高亮 */
            url = window.location.pathname + window.location.search;
            url = url.replace(/(\/(p)\/\d+)|(&p=\d+)|(\/(id)\/\d+)|(&id=\d+)|(\/(group)\/\d+)|(&group=\d+)/, "");
            $subnav.find("a[href='" + url + "']").parent().addClass("current");

            /* 左边菜单显示收起 */
            $("#subnav").on("click", "h3", function(){
                var $this = $(this);
                $this.find(".icon").toggleClass("icon-fold");
                $this.next().slideToggle("fast").siblings(".side-sub-menu:visible").
                      prev("h3").find("i").addClass("icon-fold").end().end().hide();
            });

            $("#subnav h3 a").click(function(e){e.stopPropagation()});

            /* 头部管理员菜单 */
            $(".user-bar").mouseenter(function(){
                var userMenu = $(this).children(".user-menu ");
                userMenu.removeClass("hidden");
                clearTimeout(userMenu.data("timeout"));
            }).mouseleave(function(){
                var userMenu = $(this).children(".user-menu");
                userMenu.data("timeout") && clearTimeout(userMenu.data("timeout"));
                userMenu.data("timeout", setTimeout(function(){userMenu.addClass("hidden")}, 100));
            });

	        /* 表单获取焦点变色 */
	        $("form").on("focus", "input", function(){
		        $(this).addClass('focus');
	        }).on("blur","input",function(){
				        $(this).removeClass('focus');
			        });
		    $("form").on("focus", "textarea", function(){
			    $(this).closest('label').addClass('focus');
		    }).on("blur","textarea",function(){
			    $(this).closest('label').removeClass('focus');
		    });

            // 导航栏超出窗口高度后的模拟滚动条
            var sHeight = $(".sidebar").height();
            var subHeight  = $(".subnav").height();
            var diff = subHeight - sHeight; //250
            var sub = $(".subnav");
            if(diff > 0){
                $(window).mousewheel(function(event, delta){
                    if(delta>0){
                        if(parseInt(sub.css('marginTop'))>-10){
                            sub.css('marginTop','0px');
                        }else{
                            sub.css('marginTop','+='+10);
                        }
                    }else{
                        if(parseInt(sub.css('marginTop'))<'-'+(diff-10)){
                            sub.css('marginTop','-'+(diff-10));
                        }else{
                            sub.css('marginTop','-='+10);
                        }
                    }
                });
            }
        }();
    </script>



    <link href="__ADMIN__/css/datetimepicker.css" rel="stylesheet" type="text/css">
    <link href="__ADMIN__/css/dropdown.css" rel="stylesheet" type="text/css">
	<link href="__ADMIN__/css/select2.min.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__ADMIN__/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__ADMIN__/js/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>



    <script type="text/javascript" src="__ADMIN__/js/select2.min.js"></script>
    <script type="text/javascript" src="__ADMIN__/js/select2.zh-CN.js" charset="UTF-8"></script>
    <!--[if IE]><script type="text/javascript" src="__ADMIN__/js/excanvas.js"></script><![endif]-->
    
    <script type="text/javascript">
		$(function(){
			//搜索功能
			$("#search").click(function(){
				var url = $(this).attr('url');
				var status = $("#sch-sort-txt").attr("data");
		        var query  = $('.search-form').find('input').serialize();
		        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
		        query = query.replace(/^&/g,'');
				if(status != ''){
					query = 'search=' + status + "&" + query;
		        }
		        if( url.indexOf('?')>0 ){
		            url += '&' + query;
		        }else{
		            url += '?' + query;
		        }
				window.location.href = url;
			});
		
			/* 状态搜索子菜单 */
			$(".search-form").find(".drop-down").hover(function(){
				$("#sub-sch-menu").removeClass("hidden");
			},function(){
				$("#sub-sch-menu").addClass("hidden");
			});
			$("#sub-sch-menu li").find("a").each(function(){
				$(this).click(function(){
					var text = $(this).text();
					$("#sch-sort-txt").text(text).attr("data",$(this).attr("value"));
					$("#sub-sch-menu").addClass("hidden");
				})
			});
		
		    //回车自动提交
		    $('.search-form').find('input').keyup(function(event){
		        if(event.keyCode===13){
		            $("#search").click();
		        }
		    });

            //日历插件
		    $('.datetimepicker').datetimepicker({
		       format: 'yyyy-mm-dd',
		        language:"zh-CN",
		        minView:2,
		        autoclose:true
		    });
		})
		</script>
